﻿<div class="notifications" style="display:inline-block; width:100%; padding-right:34px">
    <div style="float:left">
        <span>This user is synchronized with CRM. Details can be edited only trough the CRM.</span>
    </div>
    <div style="float:right">
        <strong title="dd/mm/yyyy hh:mm"> Last synchronization with CRM: {{userDetails.lastSyncWithCRM | date:'dd/MM/yyyy HH:mm'  }} </strong>
    </div>
</div>

<div style="float: left; width: 100%; padding-right: 4%;">
    <div style="display: table; width: 70%;">
        <div class="table-row-inp">
            <div class="inp-label">
                <div class=title-bold>
                    User Information
                </div>
            </div>
            <div class="inp-holder">
                <button style="float: right;" class="btn-green" data-ng-click="resetPassword()">Reset Password</button>
            </div>
        </div>
    </div>
        
        

    <div style="display: table; width: 50%; float: left;">
        <div class="table-row-inp">
            <div class="inp-label">
                First Name:
            </div>
            <div class="inp-holder">
                <input type="text" data-ng-model="userDetails.firstName" disabled="disabled" class="inp disabled-inp">
            </div>
        </div>
        <div class="table-spacer">&nbsp;</div>
        <div class="table-row-inp">
            <div class="inp-label">
                Middle Name:
            </div>
            <div class="inp-holder">
                <input type="text" data-ng-model="userDetails.middleName" disabled="disabled" class="inp disabled-inp">
            </div>
        </div>
        <div class="table-spacer">&nbsp;</div>
        <div class="table-row-inp">
            <div class="inp-label">
                Last Name:
            </div>
            <div class="inp-holder">
                <input type="text" data-ng-model="userDetails.lastName" disabled="disabled" class="inp disabled-inp">
            </div>
        </div>
        <div class="table-spacer">&nbsp;</div>
        <div class="table-row-inp">
            <div class=inp-label>
                Account:
            </div>
            <div class="inp-holder">
                <input type="text" data-ng-model="userDetails.account" disabled="disabled" class="inp disabled-inp">
            </div>
        </div>
        <div class="table-spacer">&nbsp;</div>
        <div class="table-row-inp">
            <div class="inp-label">
                Email:
            </div>
            <div class="inp-holder">
                <input type="text" data-ng-model="userDetails.email" disabled="disabled" class="inp disabled-inp">
            </div>
        </div>
        <div class="table-spacer">&nbsp;</div>
        <div class="table-row-inp">
            <div class="inp-label">
                User Role:
            </div>
            <div class="inp-holder">
                <input type="text" name="" disabled="disabled" class="inp disabled-inp">
            </div>
        </div>
        <div class="table-spacer">&nbsp;</div><br />
        <div class="title-bold">Additional Details</div>
        <div class="table-row-inp">
            <div class="inp-label">
                Password Expiration Date:
            </div>
            <div class="inp-holder">
                <input type="text" ui-date="{dateFormat: 'dd/mm/yy'}" ng-model="userDetails.passwordExpirationDate" disabled="disabled" class="inp disabled-inp">
            </div>
        </div>
        <div class="table-spacer">&nbsp;</div>
        <div class="table-row-inp">
            <div class="inp-label">
                Last Access Date:
            </div>
            <div class="inp-holder">
                <input type="text" name="" disabled="disabled" class="inp disabled-inp">
            </div>
        </div>
        <div class="table-spacer">&nbsp;</div>
        <div class="table-row-inp">
            <div class="inp-label">
                Status:
            </div>
            <div class="inp-holder">
                <input type="text" data-ng-model="userDetails.status" disabled="disabled" class="inp disabled-inp">
            </div>
        </div>
        <br /><br />
        <button class="btn-green" onclick="location.href = '#/users';">Cancel</button>
    </div>
    <!--<div style="display: table; float: left; margin-left: 50px;">
        <button class="btn-green" data-ng-click="resetPassword()">Reset Password</button>
    </div>-->
</div>